package com.jxd.ordering.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

/**
 * @ClassName Emp
 * @Description TODO
 * @Author Ankailong
 * @Date 2022/9/24
 * @Version 1.0
 */
public class Emp extends Entity {
    @TableId(value = "empno",type = IdType.AUTO)
    private Integer empno;//员工编号
    private String ename;//员工姓名
    private Integer sex;//性别（1 男/2 女）
    private String tel;//联系方式
    private Integer deptno;//所在部门编号
    private Integer job;//职位（1 普通员工/2 部门经理）
    private Integer userid;

    public Integer getEmpno() {
        return empno;
    }

    public void setEmpno(Integer empno) {
        this.empno = empno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getTel() {
        return tel;
    }

    public void setTel(String tel) {
        this.tel = tel;
    }

    public Integer getDeptno() {
        return deptno;
    }

    public void setDeptno(Integer deptno) {
        this.deptno = deptno;
    }

    public Integer getJob() {
        return job;
    }

    public void setJob(Integer job) {
        this.job = job;
    }

    public Integer getUserid() {
        return userid;
    }

    public void setUserid(Integer userid) {
        this.userid = userid;
    }

    public Emp() {
    }

    public Emp(Integer empno, String ename, Integer sex, String tel, Integer deptno, Integer job, Integer userid) {
        this.empno = empno;
        this.ename = ename;
        this.sex = sex;
        this.tel = tel;
        this.deptno = deptno;
        this.job = job;
        this.userid = userid;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "empno=" + empno +
                ", ename='" + ename + '\'' +
                ", sex=" + sex +
                ", tel='" + tel + '\'' +
                ", deptno=" + deptno +
                ", job=" + job +
                ", userid=" + userid +
                '}';
    }
}
